import {createRouter, createWebHistory} from "vue-router";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes : [
        {
            path: '/' ,
            component: () => import('@/views/FaceHome.vue'),
            redirect: 'face/recognize',
            children: [
                {
                    path: 'face/recognize',
                    component: () => import('@/views/FaceRecognize.vue'),
                },
                 {
                     path: 'face/register',
                     component: () => import('@/views/FaceRegister.vue'),
                 },
                 {
                     path: 'face/obtain',
                     component: () => import('@/views/FaceObtain.vue'),
                 }
            ]
        }
    ]
})

export default router